<?php
class mysqlmodel {
    public function __construct($user, $pass, $db, $host) {
        $conn = new mysqli($host, $user, $pass, $db);
    }
    public function execute($sql, $rtrs = 0) {
         $result = $conn->query($sql);
         if ($rtrs == 1) {
            return $result;
         } else {
            return NULL;
         }

    }
}
?>